<template>
  <div class="log-page">
    <el-form inline>
      <el-form-item label="设备名称">
        <el-input v-model="searchParams.value" clearable placeholder="" />
        <el-button type="primary" style="margin-left: 15px">搜索</el-button>
      </el-form-item>
    </el-form>
    <div class="table-box">
      <el-table
        v-loading="loading"
        stripe
        :data="tableData"
        element-loading-spinner="el-icon-loading"
        element-loading-background="rgba(255, 255, 255, 0.8)"
        @selection-change="onSelect"
      >
        <el-table-column type="index" align="center" label="序号" />
        <el-table-column prop="createTime" label="设备类型" align="center" />
        <el-table-column prop="name" label="厂家" align="center" />
        <el-table-column prop="name" label="设备名称" align="center" />
        <el-table-column prop="name" label="设备型号" align="center" />
        <el-table-column prop="name" label="设备密钥" align="center" />
        <el-table-column prop="name" label="商户名称" align="center" />
        <el-table-column prop="name" label="关联田块" align="center" />
        <el-table-column prop="name" label="状态" align="center" />
        <el-table-column prop="name" label="备注" align="center" />
        <el-table-column label="操作" fixed="right" width="120px">
          <template slot-scope="scope">
            <el-button
              type="text"
            >查看</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div class="page-box">
      <el-pagination
        background
        :current-page="pageNo"
        :page-sizes="pageSizes"
        :page-size="pageSize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="totalSize"
        @size-change="changePageSize"
        @current-change="changePageNo"
      />
    </div>
  </div>
</template>

<script>
import crud from '@/mixins/crud';

export default {
  name: 'Index',
  mixins: [crud]
}
</script>

<style scoped lang="scss">
.log-page {
  background-color: #fff;
  height: 100%;
  padding: 20px;
}
</style>
